{extend name="default/base" /}

{block name="title"}搜索{/block}

{block name="css"}{/block}

{block name="content"}
<div class="row">

    <div class="col-sm-8">

                <div class="box box-solid">
                    <div class="box-header with-border">
                      <h3 class="box-title">"{$keywords}" 搜索结果</h3>
                    </div>
                         <!-- Custom Tabs -->
                          <div class="nav-tabs-custom">
                            <ul class="nav nav-tabs">
                              <li class="active"><a href="#tab_1" data-toggle="tab">文章</a></li>
                              <li><a href="#tab_2" data-toggle="tab">图书</a></li>
                            </ul>
                            <div class="tab-content">
                              <div class="tab-pane active" id="tab_1">
                                <ul class="nav nav-pills nav-stacked">
                                    {volist name="article_list.list" id="vo"}
                                    <li class="pad">
                                        <span class="lead"><a href="{$vo.article_url}">{$vo.title}</a></span>
                                        <div class="text-muted hidden-xs" style="margin-top:10px;">
                                            <p class="small">{$vo.description|msubstr=0,90}</p>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                                {$article_list.page}
                              </div>
                              <!-- /.tab-pane -->
                              <div class="tab-pane" id="tab_2">
                                <ul class="nav nav-pills nav-stacked">
                                    {volist name="book_list.list" id="vo"}
                                    <li class="pad">
                                        <span class="lead"><a href="{$vo.book_url}">{$vo.title}</a></span>
                                        <div class="text-muted hidden-xs" style="margin-top:10px;">
                                            <p class="small">{$vo.description|msubstr=0,90}</p>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                              </div>
                              <!-- /.tab-pane -->
                            </div>
                            <!-- /.tab-content -->
                          </div>
                          <!-- nav-tabs-custom -->
                </div>
    </div>

    <div class="col-sm-4 hidden-xs">
        <div class="box box-solid">
          <form action="{:url('index/search/index')}" role="search">
            <div class="input-group">
              <input type="text" name="keywords" class="form-control" placeholder="Search for...">
              <span class="input-group-btn">
                <button class="btn btn-primary" type="submit">全站搜索</button>
              </span>
            </div><!-- /input-group -->
          </form>
        </div>
        <div class="box box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">标签</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <ul class="nav nav-pills">
                    {tag:list name='vo' order='num desc' limit='10'}
                    <li role="presentation"><a href="{$vo.tag_url}">{$vo.title}</a></li>
                    {/tag:list}
                </ul>
            </div>
            <!-- /.box-body -->
        </div>
    </div>

</div>

{/block}

{block name="js"}{/block}